import request from '@/utils/request'

// 查询课堂听课列表
export function listAttend(query) {
  return request({
    url: '/course/attend/list',
    method: 'get',
    params: query
  })
}

// 查询课堂听课详细
export function getAttend(id) {
  return request({
    url: '/course/attend/' + id,
    method: 'get'
  })
}

// 新增课堂听课
export function addAttend(data) {
  return request({
    url: '/course/attend',
    method: 'post',
    data: data
  })
}

// 修改课堂听课
export function updateAttend(data) {
  return request({
    url: '/course/attend',
    method: 'put',
    data: data
  })
}

// 删除课堂听课
export function delAttend(id) {
  return request({
    url: '/course/attend/' + id,
    method: 'delete'
  })
}

